<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BabyOS: b_utc.c Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="2.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BabyOS
   &#160;<span id="projectnumber">V1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b9223522bb56aee4ab59f7ba381d2163.html">bos</a></li><li class="navelem"><a class="el" href="dir_f2a2cc749b6bfcea90db6730434b0bd6.html">core</a></li><li class="navelem"><a class="el" href="dir_7991448cbe81caff9afaadef11b942e8.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">b_utc.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="b__utc_8c.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment">/*Includes ----------------------------------------------*/</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="b__utc_8h.html">b_utc.h</a>&quot;</span>  </div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#if _UTC2000_ENABLE </span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="keyword">static</span> uint8_t _bUTC_CalendarMonthDays( uint8_t lpyr, uint8_t month)</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;{</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    uint8_t days = 31, i = 0;</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    uint8_t table[7] = {1,3,5,7,8,10,12};</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keywordflow">if</span>(month &lt; 1 || month &gt; 12)</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;    {</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    }</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    <span class="keywordflow">if</span> (month == 2)</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    {</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;        days = (28 + lpyr);</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    }</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;    <span class="keywordflow">else</span></div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    {</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;        <span class="keywordflow">for</span>(i = 0;i &lt; 7;i++)</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;        {</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;            <span class="keywordflow">if</span>(month == table[i])</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;            {</div><div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;                days = 31;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;                <span class="keywordflow">break</span>;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;            }</div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;        }</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;        <span class="keywordflow">if</span>(i &gt;= 7)</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;        {</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;            days = 30;</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;        }</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;    }</div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordflow">return</span> days ;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;}</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160; </div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___u_t_c___exported___functions.html#ga51d84ed7d31f7df2d06f75ad8b296dd9">bUTC2Struct</a>( <a class="code" href="structb_u_t_c___date_time__t.html">bUTC_DateTime_t</a> *tm, <a class="code" href="group___u_t_c___exported___types_definitions.html#ga17dd2ea12b8ac7d28b50c19f3e3d63ce">bUTC_t</a> utc )</div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;{</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;    uint32_t sec_in_day = utc % <a class="code" href="group___u_t_c___exported___defines.html#ga509a01c55cbe47386fe24602b7c7fda1">DAY</a>;</div><div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#a8459fc4e94de7eefc74991e41779c8fc">second</a> = sec_in_day % 60;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#a8ff981ec55c945940f4a0da7d8709b3c">minute</a> = (sec_in_day % 3600) / 60;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#ae5af4ff48939d13d480f87e56a9385d6">hour</a> = sec_in_day / 3600;</div><div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160;</div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    uint32_t days = utc / <a class="code" href="group___u_t_c___exported___defines.html#ga509a01c55cbe47386fe24602b7c7fda1">DAY</a>;</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    </div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;    tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#a5235d49df2828411fe72ff1b0b736c3b">week</a> = (((days % 7) + 5) % 7) + 1;</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    </div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;    tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#a57ca98d8f6d4baf0fe41c583c7dcb0d5">year</a> = <a class="code" href="group___u_t_c___exported___defines.html#ga3ea29a9c2112db5d290632f4f2a721de">BEGYEAR</a>;</div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;    <span class="keywordflow">while</span> ( days &gt;= <a class="code" href="group___u_t_c___exported___defines.html#gab977d5f6948f6ceb1089db428ce032b3">YEAR_DAYS</a>( tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#a57ca98d8f6d4baf0fe41c583c7dcb0d5">year</a> ) )</div><div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;    {</div><div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;      days -= <a class="code" href="group___u_t_c___exported___defines.html#gab977d5f6948f6ceb1089db428ce032b3">YEAR_DAYS</a>( tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#a57ca98d8f6d4baf0fe41c583c7dcb0d5">year</a> );</div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;      tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#a57ca98d8f6d4baf0fe41c583c7dcb0d5">year</a>++;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;    }</div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;    tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#a3e00faf7fbf9805e9ec4d2edd6339050">month</a> = 1;</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    <span class="keywordflow">while</span> ( days &gt;= _bUTC_CalendarMonthDays( <a class="code" href="group___u_t_c___exported___defines.html#ga2706620e1bea7ddb1daf12f68f797912">YEAR_CHECK</a>( tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#a57ca98d8f6d4baf0fe41c583c7dcb0d5">year</a> ), tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#a3e00faf7fbf9805e9ec4d2edd6339050">month</a> ))</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;    {</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;      days -= _bUTC_CalendarMonthDays( <a class="code" href="group___u_t_c___exported___defines.html#ga2706620e1bea7ddb1daf12f68f797912">YEAR_CHECK</a>( tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#a57ca98d8f6d4baf0fe41c583c7dcb0d5">year</a> ), tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#a3e00faf7fbf9805e9ec4d2edd6339050">month</a> );</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;      tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#a3e00faf7fbf9805e9ec4d2edd6339050">month</a>++;</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;    }</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;    tm-&gt;<a class="code" href="structb_u_t_c___date_time__t.html#a72369a1087b2aeffe374bb054cb97c12">day</a> = days + 1;</div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;}</div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;</div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<a class="code" href="group___u_t_c___exported___types_definitions.html#ga17dd2ea12b8ac7d28b50c19f3e3d63ce">bUTC_t</a> <a class="code" href="group___u_t_c___exported___functions.html#ga70f006eef06ad96e0ba21165ae71d3a4">bStruct2UTC</a>( <a class="code" href="structb_u_t_c___date_time__t.html">bUTC_DateTime_t</a> tm)</div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;{</div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;    uint32_t seconds;</div><div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;    <span class="keywordflow">if</span>(!<a class="code" href="group___u_t_c___exported___macros.html#ga07d42172ec0864e60d1db8db4549abc5">IS_TIME_VALID</a>(tm))</div><div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    {</div><div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        <span class="keywordflow">return</span> 0;</div><div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;    }</div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    seconds = (((tm.<a class="code" href="structb_u_t_c___date_time__t.html#ae5af4ff48939d13d480f87e56a9385d6">hour</a> * 60) + tm.<a class="code" href="structb_u_t_c___date_time__t.html#a8ff981ec55c945940f4a0da7d8709b3c">minute</a>) * 60) + tm.<a class="code" href="structb_u_t_c___date_time__t.html#a8459fc4e94de7eefc74991e41779c8fc">second</a>;</div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;</div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    uint32_t days = tm.<a class="code" href="structb_u_t_c___date_time__t.html#a72369a1087b2aeffe374bb054cb97c12">day</a> - 1;</div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    int8_t month = tm.<a class="code" href="structb_u_t_c___date_time__t.html#a3e00faf7fbf9805e9ec4d2edd6339050">month</a>;</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    month--;</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    while ( month &gt; 0 )</div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    {</div><div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;        days += _bUTC_CalendarMonthDays( <a class="code" href="group___u_t_c___exported___defines.html#ga2706620e1bea7ddb1daf12f68f797912">YEAR_CHECK</a>( tm.<a class="code" href="structb_u_t_c___date_time__t.html#a57ca98d8f6d4baf0fe41c583c7dcb0d5">year</a> ), month );</div><div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;        month--;</div><div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;    }</div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;    uint32_t year = (tm.<a class="code" href="structb_u_t_c___date_time__t.html#a57ca98d8f6d4baf0fe41c583c7dcb0d5">year</a> &gt; 0) ? (tm.<a class="code" href="structb_u_t_c___date_time__t.html#a57ca98d8f6d4baf0fe41c583c7dcb0d5">year</a> - 1) : 0;</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <span class="keywordflow">while</span> ( year &gt;= <a class="code" href="group___u_t_c___exported___defines.html#ga3ea29a9c2112db5d290632f4f2a721de">BEGYEAR</a> )</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    {</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;        days += <a class="code" href="group___u_t_c___exported___defines.html#gab977d5f6948f6ceb1089db428ce032b3">YEAR_DAYS</a>( year );</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        year--;</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;    }</div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;    </div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;    seconds += (days * <a class="code" href="group___u_t_c___exported___defines.html#ga509a01c55cbe47386fe24602b7c7fda1">DAY</a>);</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;    <span class="keywordflow">return</span> seconds;</div><div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;}   </div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;<span class="comment">/************************ Copyright (c) 2019 Bean *****END OF FILE****/</span></div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="ttc" id="group___u_t_c___exported___defines_html_ga2706620e1bea7ddb1daf12f68f797912"><div class="ttname"><a href="group___u_t_c___exported___defines.html#ga2706620e1bea7ddb1daf12f68f797912">YEAR_CHECK</a></div><div class="ttdeci">#define YEAR_CHECK(yr)</div><div class="ttdef"><b>Definition:</b> <a href="b__utc_8h_source.html#l00076">b_utc.h:76</a></div></div>
<div class="ttc" id="group___u_t_c___exported___types_definitions_html_ga17dd2ea12b8ac7d28b50c19f3e3d63ce"><div class="ttname"><a href="group___u_t_c___exported___types_definitions.html#ga17dd2ea12b8ac7d28b50c19f3e3d63ce">bUTC_t</a></div><div class="ttdeci">uint32_t bUTC_t</div><div class="ttdef"><b>Definition:</b> <a href="b__utc_8h_source.html#l00066">b_utc.h:66</a></div></div>
<div class="ttc" id="structb_u_t_c___date_time__t_html_a57ca98d8f6d4baf0fe41c583c7dcb0d5"><div class="ttname"><a href="structb_u_t_c___date_time__t.html#a57ca98d8f6d4baf0fe41c583c7dcb0d5">bUTC_DateTime_t::year</a></div><div class="ttdeci">uint16_t year</div><div class="ttdef"><b>Definition:</b> <a href="b__utc_8h_source.html#l00057">b_utc.h:57</a></div></div>
<div class="ttc" id="group___u_t_c___exported___defines_html_ga3ea29a9c2112db5d290632f4f2a721de"><div class="ttname"><a href="group___u_t_c___exported___defines.html#ga3ea29a9c2112db5d290632f4f2a721de">BEGYEAR</a></div><div class="ttdeci">#define BEGYEAR</div><div class="ttdef"><b>Definition:</b> <a href="b__utc_8h_source.html#l00080">b_utc.h:80</a></div></div>
<div class="ttc" id="structb_u_t_c___date_time__t_html_a72369a1087b2aeffe374bb054cb97c12"><div class="ttname"><a href="structb_u_t_c___date_time__t.html#a72369a1087b2aeffe374bb054cb97c12">bUTC_DateTime_t::day</a></div><div class="ttdeci">uint8_t day</div><div class="ttdef"><b>Definition:</b> <a href="b__utc_8h_source.html#l00059">b_utc.h:59</a></div></div>
<div class="ttc" id="group___u_t_c___exported___macros_html_ga07d42172ec0864e60d1db8db4549abc5"><div class="ttname"><a href="group___u_t_c___exported___macros.html#ga07d42172ec0864e60d1db8db4549abc5">IS_TIME_VALID</a></div><div class="ttdeci">#define IS_TIME_VALID(n)</div><div class="ttdef"><b>Definition:</b> <a href="b__utc_8h_source.html#l00090">b_utc.h:90</a></div></div>
<div class="ttc" id="structb_u_t_c___date_time__t_html_a8ff981ec55c945940f4a0da7d8709b3c"><div class="ttname"><a href="structb_u_t_c___date_time__t.html#a8ff981ec55c945940f4a0da7d8709b3c">bUTC_DateTime_t::minute</a></div><div class="ttdeci">uint8_t minute</div><div class="ttdef"><b>Definition:</b> <a href="b__utc_8h_source.html#l00062">b_utc.h:62</a></div></div>
<div class="ttc" id="structb_u_t_c___date_time__t_html_a3e00faf7fbf9805e9ec4d2edd6339050"><div class="ttname"><a href="structb_u_t_c___date_time__t.html#a3e00faf7fbf9805e9ec4d2edd6339050">bUTC_DateTime_t::month</a></div><div class="ttdeci">uint8_t month</div><div class="ttdef"><b>Definition:</b> <a href="b__utc_8h_source.html#l00058">b_utc.h:58</a></div></div>
<div class="ttc" id="structb_u_t_c___date_time__t_html_ae5af4ff48939d13d480f87e56a9385d6"><div class="ttname"><a href="structb_u_t_c___date_time__t.html#ae5af4ff48939d13d480f87e56a9385d6">bUTC_DateTime_t::hour</a></div><div class="ttdeci">uint8_t hour</div><div class="ttdef"><b>Definition:</b> <a href="b__utc_8h_source.html#l00061">b_utc.h:61</a></div></div>
<div class="ttc" id="group___u_t_c___exported___defines_html_gab977d5f6948f6ceb1089db428ce032b3"><div class="ttname"><a href="group___u_t_c___exported___defines.html#gab977d5f6948f6ceb1089db428ce032b3">YEAR_DAYS</a></div><div class="ttdeci">#define YEAR_DAYS(yr)</div><div class="ttdef"><b>Definition:</b> <a href="b__utc_8h_source.html#l00078">b_utc.h:78</a></div></div>
<div class="ttc" id="structb_u_t_c___date_time__t_html_a8459fc4e94de7eefc74991e41779c8fc"><div class="ttname"><a href="structb_u_t_c___date_time__t.html#a8459fc4e94de7eefc74991e41779c8fc">bUTC_DateTime_t::second</a></div><div class="ttdeci">uint8_t second</div><div class="ttdef"><b>Definition:</b> <a href="b__utc_8h_source.html#l00063">b_utc.h:63</a></div></div>
<div class="ttc" id="group___u_t_c___exported___functions_html_ga51d84ed7d31f7df2d06f75ad8b296dd9"><div class="ttname"><a href="group___u_t_c___exported___functions.html#ga51d84ed7d31f7df2d06f75ad8b296dd9">bUTC2Struct</a></div><div class="ttdeci">void bUTC2Struct(bUTC_DateTime_t *tm, bUTC_t utc)</div></div>
<div class="ttc" id="b__utc_8h_html"><div class="ttname"><a href="b__utc_8h.html">b_utc.h</a></div></div>
<div class="ttc" id="group___u_t_c___exported___functions_html_ga70f006eef06ad96e0ba21165ae71d3a4"><div class="ttname"><a href="group___u_t_c___exported___functions.html#ga70f006eef06ad96e0ba21165ae71d3a4">bStruct2UTC</a></div><div class="ttdeci">bUTC_t bStruct2UTC(bUTC_DateTime_t tm)</div></div>
<div class="ttc" id="structb_u_t_c___date_time__t_html"><div class="ttname"><a href="structb_u_t_c___date_time__t.html">bUTC_DateTime_t</a></div><div class="ttdef"><b>Definition:</b> <a href="b__utc_8h_source.html#l00055">b_utc.h:55</a></div></div>
<div class="ttc" id="structb_u_t_c___date_time__t_html_a5235d49df2828411fe72ff1b0b736c3b"><div class="ttname"><a href="structb_u_t_c___date_time__t.html#a5235d49df2828411fe72ff1b0b736c3b">bUTC_DateTime_t::week</a></div><div class="ttdeci">uint8_t week</div><div class="ttdef"><b>Definition:</b> <a href="b__utc_8h_source.html#l00060">b_utc.h:60</a></div></div>
<div class="ttc" id="group___u_t_c___exported___defines_html_ga509a01c55cbe47386fe24602b7c7fda1"><div class="ttname"><a href="group___u_t_c___exported___defines.html#ga509a01c55cbe47386fe24602b7c7fda1">DAY</a></div><div class="ttdeci">#define DAY</div><div class="ttdef"><b>Definition:</b> <a href="b__utc_8h_source.html#l00081">b_utc.h:81</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
